#pragma once
#include <stdio.h>

#ifndef _WINDOWS
#include <alloca.h>
#endif // !_WINDOWS

namespace qb {
namespace proto {

#ifdef _WINDOWS
#define _snprintf_s _snprintf_s
#else
#if !defined (_snprintf_s)
#define _snprintf_s snprintf
#endif

#if !defined (_alloca)
#define _alloca alloca
#endif

#if !defined (_countof)
#define _countof(array) (sizeof(array) / sizeof(array[0]))
#endif

#if !defined (_TRUNCATE)
#define _TRUNCATE ((size_t)-1)
#endif

#if !defined (_atoi64)
#define	_atoi64 atoll
#endif

#endif // _WINDOWS

}
}
